package com.by.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.by.bean.User;
import com.by.common.ds.crud.BaseServiceImpl;
import com.by.mapper.UserMapper;
import com.by.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends BaseServiceImpl<User, UserMapper> implements UserService {

    @Override
    public User queryByUserName(String username) {
        QueryWrapper<User> wrapper=new QueryWrapper<>();
        wrapper.eq("username",username);
        return baseMapper.selectOne(wrapper);
    }
}
